'use strict';
/* egg_folder/app/contract/format.js */
const createUserBase = {
  // id: { type: 'integer', required: true, description: 'id' },
  name: { type: 'string', required: true, description: '用户姓名' },
  age: { type: 'integer', required: true, min: 1, description: '年龄' },
};


module.exports = {
  createUserRequest: createUserBase,
  updateUserRequest: {
    ...createUserBase,
    id: { type: 'integer', required: true, description: 'id' },
  },
};
